package br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.home.info;

import br.edu.ufcg.lsd.wbis.ui.client.beans.UserInfo;
import br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.Updatable;
import br.edu.ufcg.lsd.wbis.ui.client.ui.management.InfoManager;

import com.gwtext.client.widgets.Toolbar;
import com.gwtext.client.widgets.ToolbarButton;

/**
 * @author Renato Miceli
 */
public class PersonalInfoPortletToolbar extends Toolbar {

	public PersonalInfoPortletToolbar(Updatable<UserInfo> parentPortlet, InfoManager<UserInfo> infoManager, InfoManager<UserInfo> loggedManager) {
		this.addFill();
		this.addButton(new ToolbarButton("Update personal info", new UpdatePersonalInfoButtonListener(parentPortlet, infoManager, loggedManager)));
		this.addSeparator();
		this.addButton(new ToolbarButton("Change password", new ChangePasswordButtonListener(parentPortlet, infoManager)));
	}

}
